/*
 * Created on 2008-06-06
 *
 * To change the template for this generated file go to
 * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
 */
package elka.isi.comparator;

import org.evolvica.core.IIndividual;
import org.evolvica.core.eval.AbstractIndividualComparator;
import org.evolvica.core.eval.DefaultIntegerScoreComparator;

import elka.isi.individual.RabbitIndividual;

/**
 * @author jurek
 *
 * To change the template for this generated type comment go to
 * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
 */
public class HarvestingComparator extends AbstractIndividualComparator {

	/* (non-Javadoc)
	 * @see org.evolvica.core.IIndividualComparator#compare(org.evolvica.core.IIndividual, org.evolvica.core.IIndividual)
	 */
	 
	 
	public int compare(IIndividual i0, IIndividual i1) {
		DefaultIntegerScoreComparator comparator = new DefaultIntegerScoreComparator();
		return comparator.compare(((RabbitIndividual) i0).getHarvestingScore(),((RabbitIndividual) i1).getHarvestingScore());
	}
	
}
